package com.reggie.common;

public class ThreadLocal {
    private static java.lang.ThreadLocal<Long> threadLocal = new java.lang.ThreadLocal<>();

    //提供两个方法
    //设置值
    public static void set(Long id){
        threadLocal.set(id);
    }

    public static Long get(){
        return threadLocal.get();
    }
}
